<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets">
       <ui:composition template="/template/_template.xhtml">
      <ui:define name="conteudo">
      <h:form>
      <h:messages/>
      <h:inputHidden value="#{cursoBean.curso.idCurso}"/>
      <fieldset>
      <LEGEND>Cadastro de Curso</LEGEND>
      <h:panelGrid columns="2">
      <h:outputLabel id="lblNome" for="lblNome" value="Nome:"/>
      <h:inputText id="txtNome" label="lblNome" required="true" requiredMessage="Informe o nome" value="#{cursoBean.curso.nome}" styleClass="txtNome" />
      </h:panelGrid>
      </fieldset>
      <br/>
      <h:panelGrid columns="3">
      <h:commandButton value="Novo" action="#{cursoBean.novo}" immediate="true"/>
      <h:commandButton value="Salvar" action="#{cursoBean.salvar}"/>
      <h:commandButton value="Excluir" action="#{cursoBean.excluir}"/>
      </h:panelGrid>
      </h:form>
        </ui:define>
     </ui:composition>
</html>